<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
    <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
    {% csrf_token %}
    账号: <input type="text" name="username"> <br><br>
    密码: <input type="text" name="password"> <br><br>
    <input type="submit" value="注册">
</form>
</body>
</html>